package com.ygqh.baby.service;

import com.ygqh.baby.ao.AppType;
import com.ygqh.baby.exception.YgHttpException;
import com.ygqh.baby.model.YgShoppingCarModel;
import com.ygqh.baby.service.trustone.model.ApiResult;
import com.ygqh.baby.service.trustone.model.YgDeclareCustomsResult;

import java.util.List;

public interface TrustoneService {

    Boolean validateIsTrustonerOrder(List<YgShoppingCarModel> carModelList);

    Boolean isTrustonerOrder(List<Long> supplierIds);

    void pushTrustonerOrderAndDeclareCustoms(Long orderId);

    YgDeclareCustomsResult customDelarereDeclareByWx(String orderPayCode, AppType payAppType);

    YgDeclareCustomsResult customDelarereModifyByWx(String orderPayCode, String transactionId, AppType payAppType);

    ApiResult cancelorder(String orderId, String reason) throws YgHttpException;
}
